﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Wkol.Models
{
    public class Delete_file_name_suffix
    {
        public string RemoveAfterChar(string input, char delimiter)
        {
            int index = input.IndexOf(delimiter);
            if (index != -1)
            {
                return input.Substring(0, index);
            }
            else
            {
                // 如果没有找到指定的字符，则返回原始字符串  
                return input;
            }
        }
    }
}